package com.niit.agricstore.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.niit.agricstore.enu.NoticeTypeEnum;
import lombok.Data;
import org.apache.ibatis.type.Alias;
import org.springframework.format.annotation.DateTimeFormat;
import org.w3c.dom.Text;

import java.util.Date;

//公告类
@Data
@Alias("Notice")
@TableName("tb_notice")
public class Notice {
    @TableId("notice_id")
    private int noticeId;
    private long noticeAdminId;
    private String noticeAdminName;
    private String noticeTitle;
    private String noticeContent;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date noticeCreateTime;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date noticeUpdateTime;
    private NoticeTypeEnum noticeType;
    private  Long noticeWho;
}
